package per.srp.demo.carLink.testP;

import per.srp.demo.carLink.Utils.CarInfoCodeTool;
import per.srp.demo.carLink.Utils.SocketOperation;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class Test {
    public static void main(String[] args) throws Exception {
//        ServerSocket ss = new ServerSocket(9090);
//        Socket a = ss.accept();
//        System.out.println(SocketOperation.read(a));
//        SocketOperation.writeAndClose(a,"hello20202");
//        a.close();

        String encode = CarInfoCodeTool.enCodeString("{\"code\":\"1232223289\",\"no\":\"1231232322\",\"lon\":86.064513,\"lat\":44.307681,\"v\":0.0,\"b\":0}");
        String decode = CarInfoCodeTool.deCodeString(encode);
        System.out.println(encode);
        System.out.println(decode);
    }
}
